#include<stdlib.h>
#include<stdio.h>
#include<string.h>

int main()
{
	int i=0;
	char str1[64];
	memset(str1,0x00,sizeof(str1));
	strcpy(str1,"./mydaemon.log");
	char name[64];
	memset(name,0x00,sizeof(name));
	sprintf(name,"%s_%d",str1,i);
	printf("%s\n",name);
	rename("./1.txt",name);
	return 0;
}
